﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Common
{
    public class OneLineThread
    {
        public static Thread Start(ThreadStart threadStart)
        {
            var thread = new Thread(threadStart);
            thread.Start();
            return thread;
        }

        public static Thread Start(ParameterizedThreadStart parameterisedThreadStart)
        {
            var thread = new Thread(parameterisedThreadStart);
            thread.Start();
            return thread;
        }
    }
}
